﻿@model SDSystem.Models.ForumType
@using Ext.Net.MVC;
@using Ext.Net;
@{
    ViewBag.Title = "CreateForumType";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section ToolbarSection{
    @(Html.X().ButtonGroup().Items(
        Html.X().Button().Text("Save").Icon(Icon.Disk).DirectEvents(
        de=>
            {
                de.Click.Confirmation.ConfirmRequest = true;
                de.Click.Confirmation.Title = "Save";
                de.Click.Confirmation.Message = "Confirm?";
                de.Click.Url = Url.Action("CreateForumType");
                de.Click.EventMask.ShowMask = true;
                de.Click.FormID = "CreateForumTypeView";
            }),
        Html.X().Button().Text("Back").Icon(Icon.PreviousGreen)
        ))
}




@(Html.X().FormPanel()
      .ID("CreateForumTypeView")
      .BodyPadding(5)
      .Items(
          Html.X().FieldSet().Title("Forum Type Details").Layout(LayoutType.Form).Padding(5).Items(
              Html.X().TextFieldFor(m=>m.TypeName).FieldLabel("Forum Type Name").LabelWidth(100).Width(600).LabelAlign(LabelAlign.Top),
              Html.X().HtmlEditorFor(m => m.Description).FieldLabel("Description").Height(150).LabelWidth(100).LabelAlign(LabelAlign.Top)
              )))
